<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>插槽高级</title>
  <script src="../vue.js"></script>
</head>
<body>
  <div id="app">
    <child>
      <h2>副标题{{titleContent}}</h2>
    </child>
    <child></child>
  </div>
  <script type="module">
    import './child.js'
    new Vue({
      el: '#app',
      data: {
        titleContent: '二'
      }
    })
  </script>
</body>
</html>